@import "css/bootstrap.min.css";
@import "css/toolbar.css";
@import "css/breadcrumb.css";
@import "css/icono.min.css";

#app {
  font: 12px/1.5 tahoma, arial, "Hiragino Sans GB", \5b8b\4f53, sans-serif;
  text-align: center;
  color: #2c3e50;
  height: 100vh;
  padding: 50px 20px;
}

#upload {
  width: 0;
  height: 0;
  opacity: 0;
}

.container-fluid {
  width: 100%;
  height: 100%;
  border: 1px solid #dddddd;
  padding: 20px 25px;
}

.main-content.item-tiles {
  & > .card {
    width: 100px;

    position: relative;
    border: none;
    padding: 5px 10px 20px 10px;
    & > .icon {
      height: 90px;
    }
    & > .file-name {
      position: absolute;
      left: 10px;
      right: 10px;
      bottom: 10px;
      white-space: nowrap;
      overflow: hidden;
      font-size: 0.8em;
      user-select: none;
      text-overflow: ellipsis;
    }
    &.hover:hover {
      cursor: pointer;
      background-color: #f1f5fa;
    }
    &.file {
      & .icon {
        padding: 13px 13px;
      }
    }
  }
}

.main-content.item-list {
  display: block;
  & > .card {
    width: 100%;
    display: flex;
    flex-direction: row;
    position: relative;
    border: none;
    padding: 10px 10px;
    & > .icon {
      height: 30px;
      width: 30px;
      display: block;
    }
    & > .file-name {
      padding-left: 5px;
    }
    &.hover:hover {
      cursor: pointer;
      background-color: #f1f5fa;
    }
  }
}

.btn-group .btn {
  margin: 0;
}

.contextMenu {
  position: absolute;
  background-color: #fff;
  width: 100px;
  box-shadow: 3px 3px 2px 1px rgba(0, 0, 0, 0.2);
  border: 1px solid #ddd;
  box-sizing: border-box;
  ul,
  li {
    list-style: none;
    margin: 0;
    padding: 2px 0;
  }
  li {
    cursor: default;
    user-select: none;
    &:hover {
      background-color: #ddd;
    }
    label {
      display: block;
    }
  }
}

.rename-popup.show {
  display: block;
}

.no-select {
  user-select: none;
  outline: none;
}

.move-shadow {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.8;
  background-color: #f1f5fa;
  pointer-events: none;
  transform: translate(-50%, -50%);
  & > .icon {
    height: 90px;
    width: 80px;
    opacity: 0.5;
  }
  .move-target {
    position: fixed;
    width: 100vw;
    text-align: left;
    color: blue;
    .target-content {
      border: 1px solid #ddd;
      display: inline-block;
      color: darkblue;
      padding: 1px 10px 3px;
    }
    top: 100%;
    left: 50%;
  }
}
.list-count {
  padding-right: 3px;
}
.display-mode {
  cursor: pointer;
}
